import { expressjwt } from 'express-jwt';
import { PUBLIC_KEY } from '../config.js';

const auth = expressjwt({ secret: PUBLIC_KEY, algorithms: ['HS256'] }).unless({
  path: ['/api/user/login', '/api/user/register'],
});

export default auth;
